import $ from '../common';
Page({
	data: {
		login: true
	},
	submit: function(e) {
		var value = e.detail.value
		$.post("/login", value, (data) => {
			wx.setStorageSync('token', data.token)
			wx.setStorageSync('uuid', data.uuid)
			let pull = $.parent().onPullDownRefresh
			pull && pull()
			wx.navigateBack()
		})
	},
	onLoad() {

	}
});